<template>
    <div style="margin: 20px 0; float: right;">
        <el-pagination
            layout="prev, pager, next"
            :page-size="pageSize || 10"
            :current-page="page"
            @current-change="pageChange"
            :total="total">
        </el-pagination>
    </div>
</template>

<script>
    export default {
        name: 'pagination',
        props: ['total', 'pageSize', 'page'],
        methods: {
            pageChange (currPage) {
                console.log(currPage)
                // this.page = currPage
            }
        }
    }
</script>